<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>后台管理</title>
    <!-- Bootstrap -->
    <link href="./css/bootstrap.min.css" rel="stylesheet">
    <style>
        body {
            background-color: #eee;
        }
        .row {
            padding: 20px;
            margin-bottom: 10px;
        }
        .panel-default>.panel-heading, .panel-warning>.panel-heading, .panel-danger>.panel-heading {
            background-color: white;
            font-weight: bold;
        }
        .row>.panel {
            background-color: white;
            box-shadow: 1px 1px 3px #0f0f0f,-1px -1px 3px #0f0f0f;
        }
        .row {
            background-color: rgba(255,255,255,.5);
        }
        .panel-default>.count-top {
            font-size: 14px;
            color: rgba(77, 77, 77, .5);
        }
        .panel-default>.count {
            font-size: 30px;
            margin-left: 20px;
            font-weight: bolder;
            text-align: center;
        }
    </style>
</head>
<body>
    <nav class="navbar navbar-default">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="#">
                    <img alt="Brand" src="./images/M.svg" width="25" height="25">
                </a>
            </div>
            <div class="collapse navbar-collapse"  id="bs-example-navbar-collapse-1">
                <ul class="nav navbar-nav">
                    <li class="active"><a href="#">首页</a></li>
                    <li><a href="#">用户管理</a></li>
                    <li><a href="#">产品管理</a></li>
                    <li><a href="#">留言管理</a></li>
                </ul>
                <ul class="nav navbar-nav navbar-right">
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
                            <span class="glyphicon glyphicon-user" aria-hidden="true"></span>
                            <span class="text-info" style="margin-left: 5px;">Admin</span>
                            <span class="caret"></span>
                        </a>
                        <ul class="dropdown-menu">
                            <li>
                                <a href="">
                                    <span class="glyphicon glyphicon-lock" aria-hidden="true"></span>
                                    <span class="text-info" style="margin-left: 5px;">修改密码</span>
                                </a>
                            </li>
                            <li>
                                <a href="#">
                                    <span class="glyphicon glyphicon-log-out" aria-hidden="true"></span>
                                    <span class="text-info" style="margin-left: 5px;">管理员退出</span>
                                </a>
                            </li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </nav>
    <div class="container">
        <div class="row">
            <div class="col-md-3 panel panel-default well">
                <div class="count-top panel-heading">
                    <span class="glyphicon glyphicon-heart-empty" aria-hidden="true"></span>
                    <span>注册用户总数</span>
                </div>
                <div class="panel-body count text-primary">{{userCount}}</div>
            </div>
            <div class="col-md-4 panel panel-default col-md-offset-1 well">
                <div class="count-top panel-heading">
                    <span class="glyphicon glyphicon-signal" aria-hidden="true"></span>
                    <span>上架商品总数</span>
                </div>
                <div class="panel-body count text-danger">{{productCount}}</div>
            </div>
            <div class="col-md-3 panel panel-default col-md-offset-1 well">
                <div class="count-top panel-heading">
                    <span class="glyphicon glyphicon-hdd" aria-hidden="true"></span>
                    <span>用户留言总数</span>
                </div>
                <div class="panel-body count text-success">{{productNoteCount}}</div>
            </div>
        </div>
    </div>

    <!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery，所以必须放在前边) -->
    <script src="./js/jquery-3.4.1.min.js"></script>
    <!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
    <script src="./js/bootstrap.min.js"></script>
    <!-- 加载模板引擎-->
    <script src="./js/nunjucks.js"></script>
</body>
</html>